<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title><?php echo $title; ?></title>
        <link rel="shortcut icon" href="<?php echo site_url('assets/img/favicon.png'); ?>" type="image/x-icon"/>
        <?php echo $content_css; ?>
        <?php echo $content_js; ?>
    </head>
    <body>
        <div id="main-content">
            <div id="bar-navigation">
                <aside>
                    <header>
                        <div id="logomarca">
                            <a href="<?php echo base_url(); ?>"><img width="200" src="<?php echo $logomarca; ?>"/></a>
                        </div> <!-- END of #logomarca --> 
                    </header>
                    <nav>
                        <div id="menu-navigation">
                            <h2>NAVEGAÇÃO</h2>
                            <?php include_once APPPATH . '/views/fixed/menu.php'; ?>
                        </div> <!-- END of #menu-navigation --> 
                    </nav>

                    <div id="infor">
                        <h2>INFORMAÇÕES</h2>
                        <p>Olá <span><?php echo $usuario; ?></span>, seja bem vindo!</p>
                        <p><strong>Último Login em:</strong><br /><span><?php echo $ultimo_login; ?></span></p><br />
                        <p><strong>TOTAL</strong></p>
                        <p><strong>Logins:</strong> <span><?php echo $total_login; ?></span></p>
                        <p><strong>Itens que cadastrou:</strong> <span><?php echo $total_itens; ?></span></p>
                        <p><strong>Empréstimos realizados:</strong> <span><?php echo $total_emprestimo; ?></span></p>
                        <p><strong>Empréstimos ativos:</strong> <span><?php echo $total_emprestimo_ativo; ?></span></p>
                    </div> <!-- END of #infor --> 
                </aside>

                <div id="footer">
                    <footer>
                        <p><?php echo $footer; ?></p>
                    </footer>
                </div> <!-- END of #footer --> 
            </div> <!-- END of #bar-navigation --> 

            <div id="main-page">
                <div id="page-content">
                    <header>
                        <div id="page-title">
                            <h1><?php echo $page_title; ?></h1>
                        </div>  <!-- END of #page-title --> 

                       <?php if(isset($page_infor)): ?>
                       <div id="page-infor"><?php echo $page_infor; ?></div>  <!-- END of #page-infor --> 
                       <?php else: endif; ?>
                    </header>

                    <section>
                        <div id="show-alert">
                            <?php include_once APPPATH . '/views/utils/message_view.php'; ?>
                        </div>
                        <div id="page-view"><?php echo $contents; ?></div> <!-- END of #page-view --> 
                    </section>
                </div> <!-- END of #page-content --> 
            </div> <!-- END of #main-page --> 
        </div> <!-- END of #main-content --> 
    </body>
</html>
